﻿class RealisticBooks.BookLink {	public var linkX:Number;	public var linkY:Number;	public var linkWidth:Number;	public var linkHeight:Number;	public var linkText:String;	public var linkName:String;	public var linkURL:String;	public var linkStatus:Boolean;	public var linkSynonym:Boolean;	public function BookLink() {		this.linkX = 0;		this.linkY = 0;		this.linkWidth = 0;		this.linkHeight = 0;		this.linkText = "";		this.linkName = "";		this.linkURL = "";		this.linkStatus = true;		this.linkSynonym = false;	}	public function writeLinkToFile():String {		var txt:String = "<newlink";		txt += ' x="' + linkX + '"';		txt += ' y="' + linkY + '"';		txt += ' width="' + linkWidth + '"';		txt += ' height="' + linkHeight + '"';		txt += ' name="' + linkName + '"';		txt += ' href="' + linkURL + '"';		txt += ' active="' + linkStatus + '"';		txt += ' synonym="' + linkSynonym + '"';		txt += ' title="' + linkText + '"';		txt += '></newlink>';		return txt;	}}